package com.passcheck.config;

/**
 * @author ZhangHaiWen
 * @title: SecurityConfig
 * @projectName minipasscheck
 * @description: springsecurity 配置类
 * @date 2021/2/59:41
 */
//@Configurable
public class SecurityConfig /*extends WebSecurityConfigurerAdapter*/ {
    //@Override
    //protected void configure(AuthenticationManagerBuilder auth) throws Exception {
        /**
         * 在内存中创建一个名为 "user" 的用户，密码为 "pwd"，拥有 "USER" 权限，密码使用BCryptPasswordEncoder加密
         *
         * auth.inMemoryAuthentication()
         *                 .passwordEncoder(new BCryptPasswordEncoder())
         *                 .withUser("user")
         *                 .password(new BCryptPasswordEncoder()
         *                 .encode("pwd"))
         *                 .roles("USER");
         *}
         */



}
